package com.yequan.work;

import org.apache.commons.lang3.StringUtils;

/**
 * @author yequan
 * @date 2021/05/25 14:48
 **/
public class CouponDemo2 {

    public static void main(String[] args) {
        boolean newRegistry = false;
        //新用户规则判断
        String userTypeAllowed = "new";
        if (StringUtils.isNotBlank(userTypeAllowed) && "new".equals(userTypeAllowed) && !newRegistry) {
            System.out.println("不能使用");
        } else {
            System.out.println("可以使用");
        }
    }

}
